package coderead.plugin.bean;

import java.io.Serializable;
import java.util.List;

public class SimpleSearchResult implements Serializable {
    // 匹配索引
    public int[] matchIndex;
    // 匹配文本
    public String matchText;
    public String artifactId;
    public String groupId;
    public long lastModified;
    public String lastVersion;
    // 下载热度
    public int hot;
    // 项目描述
    public String describe;

    private transient List<SimpleArtifactInfo> versions;
    private transient volatile boolean loading = false;

    public int[] getMatchIndex() {
        return matchIndex;
    }

    public void setMatchIndex(int[] matchIndex) {
        this.matchIndex = matchIndex;
    }

    public String getMatchText() {
        return matchText;
    }

    public void setMatchText(String matchText) {
        this.matchText = matchText;
    }

    public String getArtifactId() {
        return artifactId;
    }

    public void setArtifactId(String artifactId) {
        this.artifactId = artifactId;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public long getLastModified() {
        return lastModified;
    }

    public void setLastModified(long lastModified) {
        this.lastModified = lastModified;
    }

    public String getLastVersion() {
        return lastVersion;
    }

    public void setLastVersion(String lastVersion) {
        this.lastVersion = lastVersion;
    }

    public int getHot() {
        return hot;
    }

    public void setHot(int hot) {
        this.hot = hot;
    }

    public List<SimpleArtifactInfo> getVersions() {
        return versions;
    }

    public void setVersions(List<SimpleArtifactInfo> versions) {
        this.versions = versions;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public boolean isLoading() {
        return loading;
    }

    public void setLoading(boolean loading) {
        this.loading = loading;
    }
}
